using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._CartographyTools._CartographicRefinement
{
    /// <summary>
    /// <para>Set Control Point By Angle</para>
    /// <para>Places a control point at vertices along a line or polygon outline where the angle created by a change in line direction is less than or equal to a specified maximum angle.</para>
    /// <para>将控制点放置在沿线或面轮廓的顶点处，其中线方向变化所创建的角度小于或等于指定的最大角度。</para>
    /// </summary>    
    [DisplayName("Set Control Point By Angle")]
    public class SetControlPointByAngle : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetControlPointByAngle()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The feature layer containing line or polygon features.</para>
        /// <para>包含线要素或面要素的要素图层。</para>
        /// </param>
        /// <param name="_maximum_angle">
        /// <para>Maximum Angle (decimal degrees)</para>
        /// <para>The angle used to determine whether a vertex along a line or polygon outline will be set as a control point. The angle value must be greater than zero and less than 180 decimal degrees.</para>
        /// <para>用于确定是否将沿直线或面轮廓的顶点设置为控制点的角度。角度值必须大于零且小于 180 十进制度。</para>
        /// </param>
        public SetControlPointByAngle(object _in_features, double? _maximum_angle)
        {
            this._in_features = _in_features;
            this._maximum_angle = _maximum_angle;
        }
        public override string ToolboxName => "Cartography Tools";

        public override string ToolName => "Set Control Point By Angle";

        public override string CallName => "cartography.SetControlPointByAngle";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _maximum_angle, _out_representations];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The feature layer containing line or polygon features.</para>
        /// <para>包含线要素或面要素的要素图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Maximum Angle (decimal degrees)</para>
        /// <para>The angle used to determine whether a vertex along a line or polygon outline will be set as a control point. The angle value must be greater than zero and less than 180 decimal degrees.</para>
        /// <para>用于确定是否将沿直线或面轮廓的顶点设置为控制点的角度。角度值必须大于零且小于 180 十进制度。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Maximum Angle (decimal degrees)")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public double? _maximum_angle { get; set; }


        /// <summary>
        /// <para>Updated Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_representations { get; set; }


        public SetControlPointByAngle SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}